Skip to content

Resolves: MTV-4551 | Add virtual machines to existing plan#2261

Open
avivtur wants to merge 1 commit intokubev2v:mainfrom
avivtur:feature/MTV-4551-allow-add-vms-to-plan
Open

Resolves: MTV-4551 | Add virtual machines to existing plan#2261
avivtur wants to merge 1 commit intokubev2v:mainfrom
avivtur:feature/MTV-4551-allow-add-vms-to-plan

Conversation

@avivtur
Copy link
Member

@avivtur avivtur commented Feb 12, 2026

📝 Links

https://issues.redhat.com/browse/MTV-4551

📝 Description

expose a dialog in the virtual machines tab to add virtual machines to the plan

🎥 Demo

Screenshot (14) Screenshot (15)

📝 CC://

Signed-off-by: Aviv Turgeman <aturgema@redhat.com>
@sonarqubecloud
Copy link

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 0% with 95 lines in your changes missing coverage. Please review.
✅ Project coverage is 14.56%. Comparing base (13484d0) to head (92aab72).
⚠️ Report is 978 commits behind head on main.

Files with missing lines Patch % Lines
...ualMachines/components/AddVirtualMachinesTable.tsx 0.00% 46 Missing ⚠️
...nts/AddVirtualMachines/AddVirtualMachinesModal.tsx 0.00% 29 Missing ⚠️
...ts/AddVirtualMachines/AddVirtualMachinesButton.tsx 0.00% 17 Missing and 1 partial ⚠️
...chinesList/hooks/useSpecVirtualMachinesActions.tsx 0.00% 2 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2261       +/-   ##
===========================================
- Coverage   36.81%   14.56%   -22.26%     
===========================================
  Files         158     1130      +972     
  Lines        2548    20288    +17740     
  Branches      599     4036     +3437     
===========================================
+ Hits          938     2954     +2016     
- Misses       1428    16670    +15242     
- Partials      182      664      +482     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.


// Read the name of a VM that is currently in the plan for exclusion checks
const plannedVmName = await planDetailsPage.virtualMachinesTab.getFirstVMName();
expect(plannedVmName).toBeTruthy();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure all test logic are within step blocks

});

await test.step('4. Select a VM and verify confirm button becomes enabled', async () => {
const modal = await planDetailsPage.virtualMachinesTab.clickAddVirtualMachines();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test could possible be optimized by reducing number of times opening and closing of modal.

await planDetailsPage.virtualMachinesTab.navigateToVirtualMachinesTab();

// Wait for the status to reflect the archived state
await page.waitForTimeout(2000);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is waitForTimeout avoidable here?

Copy link
Collaborator

@Pedro-S-Abreu Pedro-S-Abreu Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider reusing common/VirtualMachinesTable.ts or common/Table.ts page objects instead to avoid redefining common actions. getRowCount method could be moved to common/Table.ts since it's generic enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants